<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml">
<head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <link rel="stylesheet" href="mm_lodging1.css" type="text/css" />
    <title>Create Marker v1.0</title>

<style type="text/css">
        <!--
        body {
                background-color: #0099CC;
        }
        .style2 {font-family: Arial, Helvetica, sans-serif}
        .style3 {
                font-family: Verdana, Arial, Helvetica, sans-serif;
                color: #000000;
                font-weight: bold;
        }
        .style5 {font-family: Arial, Helvetica, sans-serif; font-size: 12px; }
        -->
</style>

    <?php    
    include "Global.php";    
    GetMap();
    ?>
    
    <script type="text/javascript" src="pdmarker.js"></script>
    <script type="text/javascript">
    function initialize()
    {
        <?php
        MapInitialization();
        DisplayMarkersOnMap(); 
        ?>
        
                GEvent.addListener(map,"click", function(overlay,latlng)
        {
                if (overlay) { return; }

                document.getElementById("coordx").value = latlng.lat();
                document.getElementById("coordy").value = latlng.lng();
                
        });

        
    }
    </script>

</head>

<body onload="initialize()" onunload="GUnload()">
<h1 align="center" class="pageName style3">
    <span class="style2">Create Marker</span>
    <img src="Imagenes/login2.png" width="32" height="28" />
</h1>

<form method="post" action="createMarker1.php">
<p align="left">

<table width="200" border="0">
  <tr>
    <td><table width="305" border="0">
      <tr>
        <td width="105" height="44"><div align="right" class="style5">
            <div align="left"> Coordinate X: </div>
        </div></td>
        <td width="190"><span class="markerDetail style2">
          <input name="coordx" id="coordx" type="text" class="style5" size="30" maxlength="40"/>
        </span> </td>
      </tr>
      <tr>
        <td width="105" height="44"><div align="right" class="style5">
            <div align="left"> Coordinate Y: </div>
        </div></td>
        <td width="190"><span class="markerDetail style2">
          <input name="coordy" id="coordy" type="text" class="style5" size="30" maxlength="40"/>
        </span> </td>
      </tr>
      <tr>
        <td width="105" height="44"><div align="right" class="style5">
            <div align="left"> Name: </div>
        </div></td>
        <td width="190"><span class="markerDetail style2">
          <input name="name" type="text" class="style5" size="30" maxlength="40" />
        </span> </td>
      </tr>
      <tr>
        <td width="105" height="44"><div align="right" class="style5">
            <div align="left"> Address: </div>
        </div></td>
        <td width="190"><span class="markerDetail style2">
          <input name="adress" type="text" class="style5" size="30" maxlength="40" />
        </span> </td>
      </tr>
      <tr>
        <td width="105" height="44"><div align="right" class="style5">
            <div align="left"> Type: </div>
        </div></td>
        <td width="190"><span class="markerDetail style2">
          <input name="type" type="text" class="style5" size="30" maxlength="40" />
        </span> </td>
      </tr>
      <tr>
        <td><div align="right" class="style2">
            <div align="left"> <span class="style5">Description:</span> </div>
        </div></td>
        <td><textarea name="moreinfo" cols="27" wrap="physical" class="style5"></textarea>
        </td>
      </tr>
    </table></td>
    <td>
    
        <div id="map_canvas" style="width: 950px; height: 450px" align=center></div>    
    
    </td>
  </tr>
</table>
<p align="center">
      <input name="submit" type="submit" class="subHeader" value="Save Marker"/>
    </p>
</form>    



</body>
</html>

